<?xml version="1.0" encoding="utf-8"?>
<process version="1" name="SOAPRequest" xmlns="http://www.nginn.org/WorkflowDefinition.1_0.xsd" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <dataTypes>
    </dataTypes>
    <variables>
		<variable name="userName" type="string" required="true" dir="In" />
    </variables>
    <body>
        <places>
            <place id="start" type="Start" />
            <place id="end" type="End" />
        </places>
        <tasks>
            <task id="T1" type="XmlHttp">
			<variables>
				<variable name="Title" type="string" dir="In" required="true"/>
				<variable name="CorrelationId" type="string" dir="In" required="false">
					<defaultValue>taskInstance.InstanceId</defaultValue>
				</variable>
				<variable name="Description" type="string" dir="In" required="false" />
				<variable name="Category" type="string" dir="In" required="true" />
				<variable name="AssigneeGroup" type="string" dir="In" required="true" />
			</variables>
			<inputBindings>
				<bind variable="Title"><expr>'To najlepsiejszy task'</expr></bind>
				<bind variable="Description"><expr>"To jest opis zadania dla ${data.userName}"</expr></bind>
				<bind variable="Category"><value>306</value></bind>
				<bind variable="AssigneeGroup"><value>12</value></bind>
			</inputBindings>
			<parameters>
                    <param variable="Url"><value>http://localhost/p4/ws/TaskManagement.asmx</value></param>
                    <param variable="RequestType"><value>Xml</value></param>
                    <param variable="ResponseType"><value>Xml</value></param>
				<param variable="HttpMethod"><value>POST</value></param>
				<param variable="RequestBodyXsl"><value>TaskManagement_CreateTask_Request.xsl</value></param>
				<param variable="ResponseBodyXsl"><value>TaskManagement_CreateTask_Response.xsl</value></param>
				<param variable="RequestHeaders"><expr>{"Content-Type": "application/soap+xml; charset=utf-8"}</expr></param>
                </parameters>
			
            </task>
        </tasks>
        <flows>
            <flow from="start" to="T1" />
            <flow from="T1" to="end" />
        </flows>
    </body>
</process>